package com.es.www.kyl.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author Estranger
 * @date 2025/8/1
 * description
 */
public class BaseConstants {

	@Getter
	@AllArgsConstructor
	public enum UserRole{

		ADMIN("0", "超管"),
		USER("1", "普通用户"),
		VIP("2", "会员");

		private String userRole;
		private String desc;
	}

	@Getter
	@AllArgsConstructor
	public enum QuestionType {

		SINGLE("1", "单选"),
		MULTI("2", "多选"),
		FILL("3", "填空"),
		JUDGE("4", "判断");

		private String type;
		private String desc;
	}

	/**
	 * 权限类型 0: 无权限; 1: 题库权限；2: 全部权限
	 */
	@Getter
	@AllArgsConstructor
	public enum PerType {

		NONE("0", "无权限"),
		QUESTION("1", "题库权限"),
		ALL("2", "全部权限");

		private String perType;
		private String desc;

	}

	/**
	 *
	 */
	@Getter
	@AllArgsConstructor
	public enum UserPracticeStatus {

		IN_PROGRESS(1, "进行中"),
		COMPLETED(2, "已完成");

		private Integer status;
		private String desc;

	}

	/**
	 * 练习类型
	 */
	@Getter
	@AllArgsConstructor
	public enum UserPracticeType {

		COMMON("1", "普通练习"),
		CORRECTION("2", "错题练习");

		private String type;
		private String desc;

	}

}
